import { createApp } from 'vue'
import router from "./router/index"
import store from "./store/index"
import App from './App.vue'
import { configRouter } from "@/router/routerConfig";
//全局样式
import "@/assets/style/global.less";
import "element-plus/dist/index.css";
//全局路由配置
configRouter(router, store);
const app=createApp(App)
app.config.globalProperties.$filters = {
  mobileFormat(value:Nullable<string>) {
    if (value) {
      return value.replace(/(\d{3})\d{4}(\d{4})/, `$1****$2`);
    }
    return "";
  },
};
app.use(router).use(store).mount('#app')
